# https://www.bilibili.com/video/BV1W7411G7wP?p=14&vd_source=8bd7b24b38e3e12c558d839b352b32f4
import pandas as pd
import matplotlib.pyplot as plt

pd.options.display.max_columns = 777

homeData = pd.read_excel('../resources/input_py_tools/014/home_data.xlsx')
print(homeData)

# 问题：看一下房屋的面积和价钱之间的关系
# 解决方案：散点图
#homeData.plot.scatter(x='sqft_living', y='price')
homeData.plot.scatter(y='sqft_living', x='price') # 与Excel相同的默认x轴y轴
plt.show()
